package com.prd.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.prd.dto.CustomerCommRecordDTO;
import com.prd.model.CustomerCommRecordDO;
import com.prd.util.JsonData;

import java.util.List;

/**
 * <p>
 * 客户-来往沟通记录 服务类
 * </p>
 *
 * @author o1
 * @since 2023-11-26
 */
public interface CustomerCommRecordService extends IService<CustomerCommRecordDO> {

    /**
     * 新增沟通记录
     * @param customerCommRecordDTO
     * @return
     */
    JsonData uAdd(CustomerCommRecordDTO customerCommRecordDTO);

    /**
     * 更新/添加沟通记录
     * @param customerCommRecordDTO
     * @return
     */
    JsonData uUpdateAndAdd(CustomerCommRecordDTO customerCommRecordDTO);

    JsonData update(CustomerCommRecordDO recordDO);

    JsonData addSimple(CustomerCommRecordDO recordDO);

    List<CustomerCommRecordDTO> uSearchForList(String no);
}
